package com.mid;

/**
 * Created by Lxk on 2019/9/22.
 */
public class Solution540 {

    public int singleNonDuplicate(int[] nums) {
        int res = 0;
        for (int val : nums) {
            res = res ^ val;
        }
        return res;
    }

}
